package com.itheima.specialstream;

import java.io.DataOutputStream;
import java.io.FileOutputStream;

public class SpecialOutStream {

    public static void main(String[] args) {
        try(
                DataOutputStream dos = new DataOutputStream(new FileOutputStream("./day11-promotion-app/src/b.txt"));
                ) {
            dos.writeByte(1);
            dos.writeInt(100);
            dos.writeDouble(3.14);
            dos.writeBoolean(true);
            dos.writeChar('a');
            dos.writeUTF("hello你好");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
